home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 June / PersonalComputerWorld-June2009-CoverdiscCD.iso / Software / Shareware / Mockups for Desktop 1.5.27 / MockupsForDesktop.air / MockupsAir.swf / scripts / _MenuStyle.as < prev    next >
Encoding:
Text File  |  2009-03-03  |  2.9 KB  |  66 lines

  1. package
  2. {
  3.    import mx.core.IFlexModuleFactory;
  4.    import mx.skins.halo.ListDropIndicator;
  5.    import mx.styles.CSSStyleDeclaration;
  6.    import mx.styles.StyleManager;
  7.    
  8.    public class _MenuStyle
  9.    {
  10.       private static var _embed_css_Assets_swf_MenuCheckEnabled_1657198752:Class = _MenuStyle__embed_css_Assets_swf_MenuCheckEnabled_1657198752;
  11.       
  12.       private static var _embed_css_Assets_swf_MenuRadioDisabled_1126240448:Class = _MenuStyle__embed_css_Assets_swf_MenuRadioDisabled_1126240448;
  13.       
  14.       private static var _embed_css_Assets_swf_MenuRadioEnabled_516324483:Class = _MenuStyle__embed_css_Assets_swf_MenuRadioEnabled_516324483;
  15.       
  16.       private static var _embed_css_Assets_swf_MenuSeparator_1483326274:Class = _MenuStyle__embed_css_Assets_swf_MenuSeparator_1483326274;
  17.       
  18.       private static var _embed_css_Assets_swf_MenuCheckDisabled_14322941:Class = _MenuStyle__embed_css_Assets_swf_MenuCheckDisabled_14322941;
  19.       
  20.       private static var _embed_css_Assets_swf_MenuBranchEnabled_470242440:Class = _MenuStyle__embed_css_Assets_swf_MenuBranchEnabled_470242440;
  21.       
  22.       private static var _embed_css_Assets_swf_MenuBranchDisabled_1772718837:Class = _MenuStyle__embed_css_Assets_swf_MenuBranchDisabled_1772718837;
  23.       
  24.       public function _MenuStyle()
  25.       {
  26.          super();
  27.       }
  28.       
  29.       public static function init(param1:IFlexModuleFactory) : void
  30.       {
  31.          var fbs:IFlexModuleFactory = param1;
  32.          var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("Menu");
  33.          if(!style)
  34.          {
  35.             style = new CSSStyleDeclaration();
  36.             StyleManager.setStyleDeclaration("Menu",style,false);
  37.          }
  38.          if(style.defaultFactory == null)
  39.          {
  40.             style.defaultFactory = function():void
  41.             {
  42.                this.branchDisabledIcon = _embed_css_Assets_swf_MenuBranchDisabled_1772718837;
  43.                this.paddingLeft = 1;
  44.                this.checkIcon = _embed_css_Assets_swf_MenuCheckEnabled_1657198752;
  45.                this.dropShadowEnabled = true;
  46.                this.checkDisabledIcon = _embed_css_Assets_swf_MenuCheckDisabled_14322941;
  47.                this.radioIcon = _embed_css_Assets_swf_MenuRadioEnabled_516324483;
  48.                this.radioDisabledIcon = _embed_css_Assets_swf_MenuRadioDisabled_1126240448;
  49.                this.borderStyle = "menuBorder";
  50.                this.paddingBottom = 1;
  51.                this.rightIconGap = 15;
  52.                this.paddingTop = 1;
  53.                this.dropIndicatorSkin = ListDropIndicator;
  54.                this.paddingRight = 0;
  55.                this.verticalAlign = "middle";
  56.                this.separatorSkin = _embed_css_Assets_swf_MenuSeparator_1483326274;
  57.                this.branchIcon = _embed_css_Assets_swf_MenuBranchEnabled_470242440;
  58.                this.leftIconGap = 18;
  59.                this.horizontalGap = 6;
  60.             };
  61.          }
  62.       }
  63.    }
  64. }
  65.  
  66.